<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>日期对象</title>
	<script type="text/javascript">
		// obj = new Date();

		// now = obj.getTime();

		// document.write(parseInt(now/1000));

		// obj1 = new Date('2017-10-01');

		// document.write("<br>");

		// yundan = obj1.getTime();

		// document.write(parseInt(yundan/1000));
		// 
		// 
		obj = new Date();

		nowTime = obj.getTime();

		nextTime = nowTime+30*86400*1000;

		obj.setTime(nextTime);

		document.write(obj.getDay());

		

		// obj = new Date("2017-11-01 14:45:90");

		




	</script>
</head>
<body>
	
</body>
</html>